package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * TPeisPatientId entity. @author MyEclipse Persistence Tools
 */

public class TPeisPatientId implements java.io.Serializable {

	// Fields

	private Integer idRow;
	private Integer idPatient;
	private String patientName;
	private String inputCode;
	private Integer idPatientArchive;
	private Integer idOrgReservation;
	private String orgName;
	private String orgDepart;
	private String sex;
	private Integer age;
	private String ageUnit;
	private Timestamp dateRegister;
	private Timestamp dateFinalExamed;
	private String doctorFinalUserCode;
	private String conclusion;
	private String suggestion;
	private String message;
	private String advice;
	private String dietGuide;
	private String sportGuide;
	private String knowledge;
	private String picture;
	private Integer severeDegree;
	private String positiveSummary;
	private Timestamp rowCreateTime;
	private String hospitalCode;
	private String hospitalName;

	// Constructors

	/** default constructor */
	public TPeisPatientId() {
	}

	/** minimal constructor */
	public TPeisPatientId(Integer idRow, Integer idPatient) {
		this.idRow = idRow;
		this.idPatient = idPatient;
	}

	/** full constructor */
	public TPeisPatientId(Integer idRow, Integer idPatient, String patientName,
			String inputCode, Integer idPatientArchive,
			Integer idOrgReservation, String orgName, String orgDepart,
			String sex, Integer age, String ageUnit, Timestamp dateRegister,
			Timestamp dateFinalExamed, String doctorFinalUserCode,
			String conclusion, String suggestion, String message,
			String advice, String dietGuide, String sportGuide,
			String knowledge, String picture, Integer severeDegree,
			String positiveSummary, Timestamp rowCreateTime,
			String hospitalCode, String hospitalName) {
		this.idRow = idRow;
		this.idPatient = idPatient;
		this.patientName = patientName;
		this.inputCode = inputCode;
		this.idPatientArchive = idPatientArchive;
		this.idOrgReservation = idOrgReservation;
		this.orgName = orgName;
		this.orgDepart = orgDepart;
		this.sex = sex;
		this.age = age;
		this.ageUnit = ageUnit;
		this.dateRegister = dateRegister;
		this.dateFinalExamed = dateFinalExamed;
		this.doctorFinalUserCode = doctorFinalUserCode;
		this.conclusion = conclusion;
		this.suggestion = suggestion;
		this.message = message;
		this.advice = advice;
		this.dietGuide = dietGuide;
		this.sportGuide = sportGuide;
		this.knowledge = knowledge;
		this.picture = picture;
		this.severeDegree = severeDegree;
		this.positiveSummary = positiveSummary;
		this.rowCreateTime = rowCreateTime;
		this.hospitalCode = hospitalCode;
		this.hospitalName = hospitalName;
	}

	// Property accessors

	public Integer getIdRow() {
		return this.idRow;
	}

	public void setIdRow(Integer idRow) {
		this.idRow = idRow;
	}

	public Integer getIdPatient() {
		return this.idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public String getPatientName() {
		return this.patientName;
	}

	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}

	public String getInputCode() {
		return this.inputCode;
	}

	public void setInputCode(String inputCode) {
		this.inputCode = inputCode;
	}

	public Integer getIdPatientArchive() {
		return this.idPatientArchive;
	}

	public void setIdPatientArchive(Integer idPatientArchive) {
		this.idPatientArchive = idPatientArchive;
	}

	public Integer getIdOrgReservation() {
		return this.idOrgReservation;
	}

	public void setIdOrgReservation(Integer idOrgReservation) {
		this.idOrgReservation = idOrgReservation;
	}

	public String getOrgName() {
		return this.orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getOrgDepart() {
		return this.orgDepart;
	}

	public void setOrgDepart(String orgDepart) {
		this.orgDepart = orgDepart;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getAgeUnit() {
		return this.ageUnit;
	}

	public void setAgeUnit(String ageUnit) {
		this.ageUnit = ageUnit;
	}

	public Timestamp getDateRegister() {
		return this.dateRegister;
	}

	public void setDateRegister(Timestamp dateRegister) {
		this.dateRegister = dateRegister;
	}

	public Timestamp getDateFinalExamed() {
		return this.dateFinalExamed;
	}

	public void setDateFinalExamed(Timestamp dateFinalExamed) {
		this.dateFinalExamed = dateFinalExamed;
	}

	public String getDoctorFinalUserCode() {
		return this.doctorFinalUserCode;
	}

	public void setDoctorFinalUserCode(String doctorFinalUserCode) {
		this.doctorFinalUserCode = doctorFinalUserCode;
	}

	public String getConclusion() {
		return this.conclusion;
	}

	public void setConclusion(String conclusion) {
		this.conclusion = conclusion;
	}

	public String getSuggestion() {
		return this.suggestion;
	}

	public void setSuggestion(String suggestion) {
		this.suggestion = suggestion;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getAdvice() {
		return this.advice;
	}

	public void setAdvice(String advice) {
		this.advice = advice;
	}

	public String getDietGuide() {
		return this.dietGuide;
	}

	public void setDietGuide(String dietGuide) {
		this.dietGuide = dietGuide;
	}

	public String getSportGuide() {
		return this.sportGuide;
	}

	public void setSportGuide(String sportGuide) {
		this.sportGuide = sportGuide;
	}

	public String getKnowledge() {
		return this.knowledge;
	}

	public void setKnowledge(String knowledge) {
		this.knowledge = knowledge;
	}

	public String getPicture() {
		return this.picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Integer getSevereDegree() {
		return this.severeDegree;
	}

	public void setSevereDegree(Integer severeDegree) {
		this.severeDegree = severeDegree;
	}

	public String getPositiveSummary() {
		return this.positiveSummary;
	}

	public void setPositiveSummary(String positiveSummary) {
		this.positiveSummary = positiveSummary;
	}

	public Timestamp getRowCreateTime() {
		return this.rowCreateTime;
	}

	public void setRowCreateTime(Timestamp rowCreateTime) {
		this.rowCreateTime = rowCreateTime;
	}

	public String getHospitalCode() {
		return this.hospitalCode;
	}

	public void setHospitalCode(String hospitalCode) {
		this.hospitalCode = hospitalCode;
	}

	public String getHospitalName() {
		return this.hospitalName;
	}

	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TPeisPatientId))
			return false;
		TPeisPatientId castOther = (TPeisPatientId) other;

		return ((this.getIdRow() == castOther.getIdRow()) || (this.getIdRow() != null
				&& castOther.getIdRow() != null && this.getIdRow().equals(
				castOther.getIdRow())))
				&& ((this.getIdPatient() == castOther.getIdPatient()) || (this
						.getIdPatient() != null
						&& castOther.getIdPatient() != null && this
						.getIdPatient().equals(castOther.getIdPatient())))
				&& ((this.getPatientName() == castOther.getPatientName()) || (this
						.getPatientName() != null
						&& castOther.getPatientName() != null && this
						.getPatientName().equals(castOther.getPatientName())))
				&& ((this.getInputCode() == castOther.getInputCode()) || (this
						.getInputCode() != null
						&& castOther.getInputCode() != null && this
						.getInputCode().equals(castOther.getInputCode())))
				&& ((this.getIdPatientArchive() == castOther
						.getIdPatientArchive()) || (this.getIdPatientArchive() != null
						&& castOther.getIdPatientArchive() != null && this
						.getIdPatientArchive().equals(
								castOther.getIdPatientArchive())))
				&& ((this.getIdOrgReservation() == castOther
						.getIdOrgReservation()) || (this.getIdOrgReservation() != null
						&& castOther.getIdOrgReservation() != null && this
						.getIdOrgReservation().equals(
								castOther.getIdOrgReservation())))
				&& ((this.getOrgName() == castOther.getOrgName()) || (this
						.getOrgName() != null
						&& castOther.getOrgName() != null && this.getOrgName()
						.equals(castOther.getOrgName())))
				&& ((this.getOrgDepart() == castOther.getOrgDepart()) || (this
						.getOrgDepart() != null
						&& castOther.getOrgDepart() != null && this
						.getOrgDepart().equals(castOther.getOrgDepart())))
				&& ((this.getSex() == castOther.getSex()) || (this.getSex() != null
						&& castOther.getSex() != null && this.getSex().equals(
						castOther.getSex())))
				&& ((this.getAge() == castOther.getAge()) || (this.getAge() != null
						&& castOther.getAge() != null && this.getAge().equals(
						castOther.getAge())))
				&& ((this.getAgeUnit() == castOther.getAgeUnit()) || (this
						.getAgeUnit() != null
						&& castOther.getAgeUnit() != null && this.getAgeUnit()
						.equals(castOther.getAgeUnit())))
				&& ((this.getDateRegister() == castOther.getDateRegister()) || (this
						.getDateRegister() != null
						&& castOther.getDateRegister() != null && this
						.getDateRegister().equals(castOther.getDateRegister())))
				&& ((this.getDateFinalExamed() == castOther
						.getDateFinalExamed()) || (this.getDateFinalExamed() != null
						&& castOther.getDateFinalExamed() != null && this
						.getDateFinalExamed().equals(
								castOther.getDateFinalExamed())))
				&& ((this.getDoctorFinalUserCode() == castOther
						.getDoctorFinalUserCode()) || (this
						.getDoctorFinalUserCode() != null
						&& castOther.getDoctorFinalUserCode() != null && this
						.getDoctorFinalUserCode().equals(
								castOther.getDoctorFinalUserCode())))
				&& ((this.getConclusion() == castOther.getConclusion()) || (this
						.getConclusion() != null
						&& castOther.getConclusion() != null && this
						.getConclusion().equals(castOther.getConclusion())))
				&& ((this.getSuggestion() == castOther.getSuggestion()) || (this
						.getSuggestion() != null
						&& castOther.getSuggestion() != null && this
						.getSuggestion().equals(castOther.getSuggestion())))
				&& ((this.getMessage() == castOther.getMessage()) || (this
						.getMessage() != null
						&& castOther.getMessage() != null && this.getMessage()
						.equals(castOther.getMessage())))
				&& ((this.getAdvice() == castOther.getAdvice()) || (this
						.getAdvice() != null
						&& castOther.getAdvice() != null && this.getAdvice()
						.equals(castOther.getAdvice())))
				&& ((this.getDietGuide() == castOther.getDietGuide()) || (this
						.getDietGuide() != null
						&& castOther.getDietGuide() != null && this
						.getDietGuide().equals(castOther.getDietGuide())))
				&& ((this.getSportGuide() == castOther.getSportGuide()) || (this
						.getSportGuide() != null
						&& castOther.getSportGuide() != null && this
						.getSportGuide().equals(castOther.getSportGuide())))
				&& ((this.getKnowledge() == castOther.getKnowledge()) || (this
						.getKnowledge() != null
						&& castOther.getKnowledge() != null && this
						.getKnowledge().equals(castOther.getKnowledge())))
				&& ((this.getPicture() == castOther.getPicture()) || (this
						.getPicture() != null
						&& castOther.getPicture() != null && this.getPicture()
						.equals(castOther.getPicture())))
				&& ((this.getSevereDegree() == castOther.getSevereDegree()) || (this
						.getSevereDegree() != null
						&& castOther.getSevereDegree() != null && this
						.getSevereDegree().equals(castOther.getSevereDegree())))
				&& ((this.getPositiveSummary() == castOther
						.getPositiveSummary()) || (this.getPositiveSummary() != null
						&& castOther.getPositiveSummary() != null && this
						.getPositiveSummary().equals(
								castOther.getPositiveSummary())))
				&& ((this.getRowCreateTime() == castOther.getRowCreateTime()) || (this
						.getRowCreateTime() != null
						&& castOther.getRowCreateTime() != null && this
						.getRowCreateTime()
						.equals(castOther.getRowCreateTime())))
				&& ((this.getHospitalCode() == castOther.getHospitalCode()) || (this
						.getHospitalCode() != null
						&& castOther.getHospitalCode() != null && this
						.getHospitalCode().equals(castOther.getHospitalCode())))
				&& ((this.getHospitalName() == castOther.getHospitalName()) || (this
						.getHospitalName() != null
						&& castOther.getHospitalName() != null && this
						.getHospitalName().equals(castOther.getHospitalName())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIdRow() == null ? 0 : this.getIdRow().hashCode());
		result = 37 * result
				+ (getIdPatient() == null ? 0 : this.getIdPatient().hashCode());
		result = 37
				* result
				+ (getPatientName() == null ? 0 : this.getPatientName()
						.hashCode());
		result = 37 * result
				+ (getInputCode() == null ? 0 : this.getInputCode().hashCode());
		result = 37
				* result
				+ (getIdPatientArchive() == null ? 0 : this
						.getIdPatientArchive().hashCode());
		result = 37
				* result
				+ (getIdOrgReservation() == null ? 0 : this
						.getIdOrgReservation().hashCode());
		result = 37 * result
				+ (getOrgName() == null ? 0 : this.getOrgName().hashCode());
		result = 37 * result
				+ (getOrgDepart() == null ? 0 : this.getOrgDepart().hashCode());
		result = 37 * result
				+ (getSex() == null ? 0 : this.getSex().hashCode());
		result = 37 * result
				+ (getAge() == null ? 0 : this.getAge().hashCode());
		result = 37 * result
				+ (getAgeUnit() == null ? 0 : this.getAgeUnit().hashCode());
		result = 37
				* result
				+ (getDateRegister() == null ? 0 : this.getDateRegister()
						.hashCode());
		result = 37
				* result
				+ (getDateFinalExamed() == null ? 0 : this.getDateFinalExamed()
						.hashCode());
		result = 37
				* result
				+ (getDoctorFinalUserCode() == null ? 0 : this
						.getDoctorFinalUserCode().hashCode());
		result = 37
				* result
				+ (getConclusion() == null ? 0 : this.getConclusion()
						.hashCode());
		result = 37
				* result
				+ (getSuggestion() == null ? 0 : this.getSuggestion()
						.hashCode());
		result = 37 * result
				+ (getMessage() == null ? 0 : this.getMessage().hashCode());
		result = 37 * result
				+ (getAdvice() == null ? 0 : this.getAdvice().hashCode());
		result = 37 * result
				+ (getDietGuide() == null ? 0 : this.getDietGuide().hashCode());
		result = 37
				* result
				+ (getSportGuide() == null ? 0 : this.getSportGuide()
						.hashCode());
		result = 37 * result
				+ (getKnowledge() == null ? 0 : this.getKnowledge().hashCode());
		result = 37 * result
				+ (getPicture() == null ? 0 : this.getPicture().hashCode());
		result = 37
				* result
				+ (getSevereDegree() == null ? 0 : this.getSevereDegree()
						.hashCode());
		result = 37
				* result
				+ (getPositiveSummary() == null ? 0 : this.getPositiveSummary()
						.hashCode());
		result = 37
				* result
				+ (getRowCreateTime() == null ? 0 : this.getRowCreateTime()
						.hashCode());
		result = 37
				* result
				+ (getHospitalCode() == null ? 0 : this.getHospitalCode()
						.hashCode());
		result = 37
				* result
				+ (getHospitalName() == null ? 0 : this.getHospitalName()
						.hashCode());
		return result;
	}

}